package com.alangyun.remind.config;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;

import com.alangyun.remind.RemindPreference;

@Configuration
@DependsOn("remind-pref")
public class FreemarkConfiguration {

	@Resource
	private freemarker.template.Configuration config;

    @PostConstruct
    public void setConfigure() throws Exception {

    	config.setSharedVariable("ROOT", RemindPreference.getDomain());
    	
    }
}
